package pl.maciejziarko.mshare.persistence;

import pl.maciejziarko.mshare.domain.Account;

import java.util.List;

/**
 * @author Maciej Ziarko
 */
public interface AccountMapper {

    Account selectAccount(String username);

    List<Account> selectAllAccounts();

    int insertAccount(Account account);

    Account selectCredentials(String username);

    long selectAccountsCount();

    int deleteAccount(String username);

    int updateAccount(Account account);

    int deleteAllAccounts();

}
